import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import fire_component_msg from '@feidao/web/atom/browser/fsm/fire-component-msg';
import get_exam_info from './a008';

/**
 * 列表 编辑按钮
 */
export default async function (fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	get_exam_info(fd);

	console.log(args[0].currentTarget.dataset);
	const t_no = args[0].currentTarget.dataset.feidaoTno;
	const t_id = args[0].currentTarget.dataset.feidaoTid;

	const param = {
		teacher_no: t_no,
		exam_name: fd.data.exam_name,
		exam_id: fd.data.exam_id,
		teacher_name: fd.data.teacher_name,
		teacher_id: t_id
	};

	fire_component_msg('zj-teacher-002', 'ec-001', param);
}